//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.aidong.model.wills;

import java.io.Serializable;

public class PssProductStockHisPK implements Serializable {
	protected String productCode;
	protected String shopCode;
	protected String saveMonth;

	public PssProductStockHisPK() {
	}

	public PssProductStockHisPK(String productCode, String shopCode, String saveMonth) {
		this.productCode = productCode;
		this.shopCode = shopCode;
		this.saveMonth = saveMonth;
	}

	public String getProductCode() {
		return this.productCode;
	}

	public void setProductCode(String productCode) {
		this.productCode = productCode;
	}

	public String getShopCode() {
		return this.shopCode;
	}

	public void setShopCode(String shopCode) {
		this.shopCode = shopCode;
	}

	public String getSaveMonth() {
		return this.saveMonth;
	}

	public void setSaveMonth(String saveMonth) {
		this.saveMonth = saveMonth;
	}

	public boolean equals(Object o) {
		if(this == o) {
			return true;
		} else if(o != null && this.getClass() == o.getClass()) {
			PssProductStockHisPK that;
			label45: {
				that = (PssProductStockHisPK)o;
				if(this.productCode != null) {
					if(this.productCode.equals(that.productCode)) {
						break label45;
					}
				} else if(that.productCode == null) {
					break label45;
				}

				return false;
			}

			label38: {
				if(this.saveMonth != null) {
					if(this.saveMonth.equals(that.saveMonth)) {
						break label38;
					}
				} else if(that.saveMonth == null) {
					break label38;
				}

				return false;
			}

			if(this.shopCode != null) {
				if(!this.shopCode.equals(that.shopCode)) {
					return false;
				}
			} else if(that.shopCode != null) {
				return false;
			}

			return true;
		} else {
			return false;
		}
	}

	public int hashCode() {
		int result = this.productCode != null?this.productCode.hashCode():0;
		result = 31 * result + (this.shopCode != null?this.shopCode.hashCode():0);
		result = 31 * result + (this.saveMonth != null?this.saveMonth.hashCode():0);
		return result;
	}
}
